/*
 * File Name : groups.h
 * Auther : dream.liuguobiao
 * Create Date : 2010-5-11
 * Last Edit : 2010-5-11
 */

#ifndef GROUPS_H
#define GROUPS_H

#include "group.h"

class groups
{
private:
  group *first_group ;
  group *last_group ;
  int new_ID ;
  int group_count ;
  static groups *instance_groups;

  groups();

public:
  ~groups(){}

  static groups *get_groups();
  group *find_group_by_name( std::string *name );
  group *find_group_by_ID( int ID );
  bool delete_group_by_name( std::string *name );
  bool insert_group( group *new_group );
  int get_group_count();

};

#endif
